package com.example.demo.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("t_article")
@NoArgsConstructor
@AllArgsConstructor
public class Article {

    private String id;

    private String uid;

    private String title;

    //是否有封面图片
    private boolean hasPoster;

    //类型
    private String type;

    //封面图片id
    private String poster;

    public
    String getId () {
        return id;
    }

    public
    void setId ( String id ) {
        this.id = id;
    }

    public
    String getUid () {
        return uid;
    }

    public
    void setUid ( String uid ) {
        this.uid = uid;
    }

    public
    String getTitle () {
        return title;
    }

    public
    void setTitle ( String title ) {
        this.title = title;
    }

    public
    boolean isHasPoster () {
        return hasPoster;
    }

    public
    void setHasPoster ( boolean hasPoster ) {
        this.hasPoster = hasPoster;
    }

    public
    String getType () {
        return type;
    }

    public
    void setType ( String type ) {
        this.type = type;
    }

    public
    String getPoster () {
        return poster;
    }

    public
    void setPoster ( String poster ) {
        this.poster = poster;
    }

    public
    String getContent () {
        return content;
    }

    public
    void setContent ( String content ) {
        this.content = content;
    }

    public
    Integer getAgreeCount () {
        return agreeCount;
    }

    public
    void setAgreeCount ( Integer agreeCount ) {
        this.agreeCount = agreeCount;
    }

    public
    Integer getCommentCount () {
        return commentCount;
    }

    public
    void setCommentCount ( Integer commentCount ) {
        this.commentCount = commentCount;
    }

    public
    String getCreateAt () {
        return createAt;
    }

    public
    void setCreateAt ( String createAt ) {
        this.createAt = createAt;
    }

    //内容
    private String content;

    //点赞数
    private Integer agreeCount;

    //评论数
    private Integer commentCount;

    private String createAt;
    private String checker;

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }
}
